import { createRouter, createWebHistory } from 'vue-router'
import Index from '@/views/Index.vue'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: Index
    },
    // 分类
    {
      path: '/classification',
      name: 'classification',
      component: () => import('@/views/classification.vue')
    },
    // 花友圈
    {
      path: '/flower',
      name: 'flower',
      component: () => import('../views/FriendsCircle.vue'),
     
    },
     // 花语大全
    {
      path: '/language',
      name: 'language',
      component: () => import('../views/FlowerLanguage.vue'),
       meta: {
        hideTabBar:'ture',
      } ,
    },
      // 文章详情
    {
      path: '/details',
      name: 'details',
      component: () => import('../views/Details.vue'),
       meta: {
        hideTabBar:'ture',
      } ,
    },
     // 文章资讯
    {
      path: '/article',
      name: 'article',
      component: () => import('../views/ArticleInformation.vue'),
       meta: {
        hideTabBar:'ture',
      },
       
    },
    // 自选大厅
    {
      path: '/hall',
      name: 'hall',
      component: () => import('../views/Hall.vue'),
       meta: {
        hideTabBar:'ture',
      },
       
    },
        // 订单详情
    {
      path: '/orderdetails',
      name: 'orderdetails',
      component: () => import('../views/OrderDetails.vue'),
       meta: {
        hideTabBar:'ture',
      },
       
    },
    // 商品详情
    {
        path: '/productdetails',
        name: 'productdetails',
        component: () => import('../views/ProductDetails.vue'),
         meta: {
          hideTabBar:'ture',
        },
    },
    // 购物车
    {
      path: '/shopping',
      name: 'shopping',
      component: () => import('../views/ShoppingCart.vue')
    },
    // 我的
     {
      path: '/mine',
      name: 'mine',
      component: () => import('../views/Mine.vue')
    }
  ]
})

export default router
